INetworkBackend.connect

interface INetworkBackend
connect
(,
void delegate
()
onConnect
,
uint id = NetID.server
)

Parameters

ip NetIPAddress

The IP to connect

onConnect void delegate
()

Used for sending messages on the connect. WARNING: If you're using NetController, do not call connect from that interface.

id uint

ID of the address to connect to. Relevant when you're not using a P2P connection. Enforced when using websockets, since direct connection is unavailable.

Return Value

The connection status

Meta